package com.matrix.quartz.dao;

import java.util.List;
import java.util.Map;

import com.matrix.quartz.bean.QuartzExecuteHistory;
import org.apache.ibatis.annotations.Param;

import com.matrix.core.pojo.PaginationVO;

/**
 * @description (任务执历史)
 * @author zhangheng
 * @date 2019-01-14 15:37
 */
public interface QuartzExecuteHistoryDao {

	public int insert(@Param("item") QuartzExecuteHistory quartzExecuteHistory);

	public int batchInsert(@Param("list") List<QuartzExecuteHistory> quartzExecuteHistoryList);

	public int updateByMap(Map<String, Object> modifyMap);

	public int updateByModel(@Param("record") QuartzExecuteHistory quartzExecuteHistory);

	public int deleteByIds(@Param("list") List<String> list);

	public int deleteById(Integer ehId);

	public int deleteByModel(@Param("record") QuartzExecuteHistory quartzExecuteHistory);

	public List<QuartzExecuteHistory> selectInPage(@Param("record") QuartzExecuteHistory quartzExecuteHistory,
                                                   @Param("pageVo") PaginationVO pageVo);

	public List<QuartzExecuteHistory> selectByModel(@Param("record") QuartzExecuteHistory quartzExecuteHistory);

	public int selectTotalRecord(@Param("record") QuartzExecuteHistory quartzExecuteHistory);

	public QuartzExecuteHistory selectById(Integer ehId);

	public QuartzExecuteHistory selectForUpdate(Integer ehId);

}